package com.bida.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bida.domain.dto.EmployeeDTO;
import com.bida.domain.dto.EmployeeLoginDTO;
import com.bida.domain.dto.PasswordEditDTO;
import com.bida.domain.entity.Employee;
import com.bida.result.PageResult;
import com.bida.result.Result;

public interface IEmployeeService extends IService<Employee> {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    Result saveNewEmployee(EmployeeDTO employeeDTO);

    Result<PageResult> pageGetEmployee(String name, Integer page, Integer pageSize);

    Result updateStatus(Integer status, Long id);

    Result updateEmployeeInfo(EmployeeDTO employeeDTO);

    Result<Employee> getEmployeeInfoById(Long id);

    Result eitPasswordById(PasswordEditDTO passwordEditDTO);
}
